# -*- coding: utf-8 -*-
import KBEngine
import IKernel
from KBEDebug import *

class ExeFlowModule:
	def __init__(self):
		pass

	def init(self, isReload):
		# 注册回调函数
		IKernel.Instance().registerFunc("ExeFlowModule.onCellappInit", self.onCellappInit)

		IKernel.Instance().addEventCallback("EngineProxy", "onInit", "ExeFlowModule.onCellappInit")

	def end(self):
		pass

	def onCellappInit(self, eventType, eventName, senderEntityID, receiverEntityID, args):
		isReload = args[0]
		if isReload == False :
			return

		# 既然重新加载了，也顺便把各个模块也重新加载一次吧
		IKernel.Instance().init(isReload)













































